﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using PMS.XCMG.Util;

namespace PMS.XCMG.Entity
{
    /// <summary>
    /// 物料规格
    /// </summary>
    public partial class MaterielSpec : BusEntity
    {
        /// <summary>
        /// 物料ID
        /// </summary>
        public string MaterielId { set; get; }

        /// <summary>
        /// 图号
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// MES编码
        /// </summary>
        public string MesCode { set; get; }

        /// <summary>
        /// 直径-单位mm
        /// </summary>
        public int Diameter { set; get; }

        /// <summary>
        /// 宽度-单位mm
        /// </summary>
        public int Width { set; get; }

        /// <summary>
        /// 高度-单位mm
        /// </summary>
        public int Height { set; get; }

        /// <summary>
        /// 至工装高度-单位mm
        /// </summary>
        public double ToFrockHeight { set; get; }

        /// <summary>
        /// 边长-单位mm
        /// </summary>
        public int SideLength { set; get; }

        /// <summary>
        /// 型号
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 平台
        /// </summary>
        public string Desc { set; get; }

        /// <summary>
        /// 规格排序号
        /// </summary>
        public int Sort { set; get; }
    }

    public partial class MaterielSpec : BusEntity
    {
        /// <summary>
        /// 物料实体
        /// </summary>
        public MaterielInfor Materiel { set; get; }

        public List<MaterialBomTree> BomTrees { set; get; }
    }

    /// <summary>
    /// 实体配置
    /// OnModelCreating
    /// </summary>
    public class MaterielSpecTypeConfig : BusEntityTypeConfig<MaterielSpec>, IEntityTypeConfiguration<MaterielSpec>
    {
        public override void Configure(EntityTypeBuilder<MaterielSpec> builder)
        {
            base.Configure(builder);

            #region 主外键关系
            builder.HasOne(p => p.Materiel).WithMany(p => p.Specs).HasForeignKey(p => p.MaterielId);
            #endregion

            #region 字段属性:最大长度,是否必需,默认值
            builder.Property(p => p.MaterielId).HasMaxLength(EntityDefinition.DefSmallColLen).IsRequired();
            builder.Property(p => p.Code).HasMaxLength(EntityDefinition.DefSmallColLen).IsRequired();
            builder.Property(p => p.Name).HasMaxLength(EntityDefinition.DefMiddleColLen).IsRequired();
            builder.Property(p => p.Desc).HasMaxLength(EntityDefinition.DefSmallColLen).IsRequired();
            builder.Property(p => p.Sort).IsRequired();
            #endregion

            #region 备注
            builder.HasComment("物料规格信息");
            builder.Property(p => p.MaterielId).HasComment("物料ID");
            builder.Property(p => p.Code).HasComment("规格编码");
            builder.Property(p => p.Name).HasComment("规格名称");
            builder.Property(p => p.Desc).HasComment("规格描述");
            builder.Property(p => p.Sort).HasComment("规格排序号");
            #endregion

            #region 种子数据
            //
            builder.HasData(new MaterielSpec() { Id = "11", MesCode = "190007557", MaterielId = "10", Code = "2350-TG011011", Name = "筒体总成 2350-TG011011", Sort = 1, Desc = "2350平台", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "12", MesCode = "190007076", MaterielId = "10", Code = "2280-TG01148", Name = "筒体总成 2280-TG01148", Sort = 3, Desc = "2280平台", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "13", MesCode = "190007048", MaterielId = "10", Code = "2280-TG011210", Name = "筒体总成 2280-TG011210", Sort = 4, Desc = "2280平台", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "14", MesCode = "190004004", MaterielId = "10", Code = "2280-TG01085", Name = "筒体总成 2280-TG01085", Sort = 5, Desc = "2280平台", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "15", MesCode = "190003660", MaterielId = "10", Code = "2280-TG01103", Name = "筒体总成 2280-TG01103", Sort = 6, Desc = "2280平台", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "16", MesCode = "190007142", MaterielId = "10", Code = "2240-TG01088", Name = "筒体总成 2240-TG01088", Sort = 8, Desc = "2240平台", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "17", MesCode = "190007125", MaterielId = "10", Code = "2240-TG01094", Name = "筒体总成 2240-TG01094", Sort = 9, Desc = "2240平台", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "18", MesCode = "190007001", MaterielId = "10", Code = "2240-TG01108", Name = "筒体总成 2240-TG01108", Sort = 10, Desc = "2240平台", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "19", MesCode = "190007795", MaterielId = "10", Code = "2350-TG011213", Name = "筒体总成 2350-TG011213", Sort = 2, Desc = "2350平台", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "20", MesCode = "190007525", MaterielId = "10", Code = "2240-TG011010", Name = "筒体总成 2240-TG011010", Sort = 11, Desc = "2240平台", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "21", MesCode = "190007658", MaterielId = "10", Code = "2240-TG011212", Name = "筒体总成 2240-TG011212", Sort = 12, Desc = "2240平台", CreateUserId = "1", ModifyUserId = "1" });

            //builder.HasData(new MaterielSpec() { Id = "16", MesCode = "190007658", ElectricCode = 7, MaterielId = "10", Code = "2280-TG011212", Name = "TG011212", Sort = 7, Desc = "2280", CreateUserId = "1", ModifyUserId = "1" });            
            //builder.HasData(new MaterielSpec() { Id = "21", MesCode = "190007795", ElectricCode = 21, MaterielId = "10", Code = "2350-TG01128", Name = "TG01128", Sort = 7, Desc = "2350", CreateUserId = "1", ModifyUserId = "1" });

            //封头总成
            builder.HasData(new MaterielSpec() { Id = "1001_01", MesCode = "190007556", MaterielId = "1001", Code = "TG011011.1.5", Name = "封头总成 TG011011.1.6", SideLength = 0, Height = 0, Diameter = 0, Sort = 1, Desc = "封头总成 TG011011.1.6", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1001_02", MesCode = "190007790", MaterielId = "1001", Code = "TG011213.1.5", Name = "封头总成 TG011213.1.6", SideLength = 0, Height = 0, Diameter = 0, Sort = 2, Desc = "封头总成 TG011213.1.6", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1001_03", MesCode = "190007078", MaterielId = "1001", Code = "TG01148.1.4", Name = "封头总成 TG01148.1.5", SideLength = 0, Height = 0, Diameter = 0, Sort = 3, Desc = "封头总成 TG01148.1.5", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1001_04", MesCode = "190007047", MaterielId = "1001", Code = "TG011210.1.4", Name = "封头总成 TG011210.1.5", SideLength = 0, Height = 0, Diameter = 0, Sort = 4, Desc = "封头总成 TG011210.1.5", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1001_05", MesCode = "190003099", MaterielId = "1001", Code = "TG01083.1.4", Name = "封头总成 TG01083.1.5", SideLength = 0, Height = 0, Diameter = 0, Sort = 5, Desc = "封头总成 TG01083.1.5", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1001_06", MesCode = "190007097", MaterielId = "1001", Code = "TG01108.1.4", Name = "封头总成 TG01108.1.5", SideLength = 0, Height = 0, Diameter = 0, Sort = 6, Desc = "封头总成 TG01108.1.5", CreateUserId = "1", ModifyUserId = "1" });

            //前锥及前锥拼板规格
            builder.HasData(new MaterielSpec() { Id = "10021_01", MesCode = "190007540", MaterielId = "10021", Code = "TG011011.1.1 - 1", Name = "前锥拼板 TG011011.1.1 - 1", SideLength = 1540, Height = 1500, Diameter = 0, Sort = 1, Desc = "前锥拼板 TG011011.1.1 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10021_02", MesCode = "190007783", MaterielId = "10021", Code = "TG011213.1.1 - 1", Name = "前锥拼板 TG011213.1.1 - 1", SideLength = 1540, Height = 1500, Diameter = 0, Sort = 2, Desc = "前锥拼板 TG011213.1.1 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10021_03", MesCode = "190007079", MaterielId = "10021", Code = "TG01148.1.1 - 1", Name = "前锥拼板 TG01148.1.1 - 1", SideLength = 1328, Height = 1300, Diameter = 0, Sort = 3, Desc = "前锥拼板 TG01148.1.1 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10021_04", MesCode = "190007055", MaterielId = "10021", Code = "TG011210.1.1 - 1", Name = "前锥拼板 TG011210.1.1 - 1", SideLength = 1328, Height = 1300, Diameter = 0, Sort = 4, Desc = "前锥拼板 TG011210.1.1 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10021_05", MesCode = "190004837", MaterielId = "10021", Code = "TG01103.1II.1 - 1", Name = "前锥拼板 TG01103.1II.1 - 1", SideLength = 1328, Height = 1300, Diameter = 0, Sort = 5, Desc = "前锥拼板 TG01103.1II.1 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10021_06", MesCode = "190007411", MaterielId = "10021", Code = "TG01108.1III.1 - 1", Name = "前锥拼板 TG01108.1III.1 - 1", SideLength = 4530, Height = 1450, Diameter = 0, Sort = 6, Desc = "前锥拼板 TG01108.1III.1 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10021_07", MesCode = "190007528", MaterielId = "10021", Code = "TG011010.1.1 - 1", Name = "前锥拼板 TG011010.1.1 - 1", SideLength = 1588, Height = 1550, Diameter = 0, Sort = 7, Desc = "前锥拼板 TG011010.1.1 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10021_08", MesCode = "190007663", MaterielId = "10021", Code = "TG011212.1.1 - 1", Name = "前锥拼板 TG011212.1.1 - 1", SideLength = 1588, Height = 1550, Diameter = 0, Sort = 8, Desc = "前锥拼板 TG011212.1.1 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10021_09", MesCode = "xxxx", MaterielId = "10021", Code = "xxxx", Name = "前锥拼板 xxxx", SideLength = 1347, Height = 1315, Diameter = 0, Sort = 9, Desc = "前锥拼板 xxxx", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1002_01", MesCode = "190007540", MaterielId = "1002", Code = "TG011011.1.1 - 1", Name = "前锥 TG011011.1.1 - 1", SideLength = 1540, Height = 1500, Diameter = 0, Sort = 10, Desc = "前锥 TG011011.1.1 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1002_02", MesCode = "190007783", MaterielId = "1002", Code = "TG011213.1.1 - 1", Name = "前锥 TG011213.1.1 - 1", SideLength = 1540, Height = 1500, Diameter = 0, Sort = 11, Desc = "前锥 TG011213.1.1 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1002_03", MesCode = "190007079", MaterielId = "1002", Code = "TG01148.1.1 - 1", Name = "前锥 TG01148.1.1 - 1", SideLength = 1328, Height = 1300, Diameter = 0, Sort = 12, Desc = "前锥 TG01148.1.1 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1002_04", MesCode = "190007055", MaterielId = "1002", Code = "TG011210.1.1 - 1", Name = "前锥 TG011210.1.1 - 1", SideLength = 1328, Height = 1300, Diameter = 0, Sort = 13, Desc = "前锥 TG011210.1.1 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1002_05", MesCode = "190004837", MaterielId = "1002", Code = "TG01103.1II.1 - 1", Name = "前锥 TG01103.1II.1 - 1", SideLength = 1328, Height = 1300, Diameter = 0, Sort = 14, Desc = "前锥 TG01103.1II.1 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1002_06", MesCode = "190007411", MaterielId = "1002", Code = "TG01108.1III.1 - 1", Name = "前锥 TG01108.1III.1 - 1", SideLength = 4530, Height = 1450, Diameter = 0, Sort = 15, Desc = "前锥 TG01108.1III.1 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1002_07", MesCode = "190007528", MaterielId = "1002", Code = "TG011010.1.1 - 1", Name = "前锥 TG011010.1.1 - 1", SideLength = 1588, Height = 1550, Diameter = 0, Sort = 16, Desc = "前锥 TG011010.1.1 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1002_08", MesCode = "190007663", MaterielId = "1002", Code = "TG011212.1.1 - 1", Name = "前锥 TG011212.1.1 - 1", SideLength = 1588, Height = 1550, Diameter = 0, Sort = 17, Desc = "前锥 TG011212.1.1 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1002_09", MesCode = "xxxx", MaterielId = "1002", Code = "09.xxxx", Name = "前锥 09.xxxx", SideLength = 1347, Height = 1315, Diameter = 0, Sort = 18, Desc = "前锥 09.xxxx", CreateUserId = "1", ModifyUserId = "1" });

            //中筒及中筒拼板规格
            builder.HasData(new MaterielSpec() { Id = "10031_01", MesCode = "190007552", MaterielId = "10031", Code = "TG011011.1.2 - 1", Name = "中筒拼板 TG011011.1.2 - 1", SideLength = 1160, Height = 1160, Diameter = 2350, Sort = 1, Desc = "中筒拼板 TG011011.1.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10031_02", MesCode = "190007785", MaterielId = "10031", Code = "TG011213.1.2 - 1", Name = "中筒拼板 TG011213.1.2 - 1", SideLength = 1360, Height = 1360, Diameter = 2350, Sort = 2, Desc = "中筒拼板 TG011213.1.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10031_03", MesCode = "190007081", MaterielId = "10031", Code = "TG01148.1.2 - 1", Name = "中筒拼板 TG01148.1.2 - 1", SideLength = 2480, Height = 2480, Diameter = 2280, Sort = 3, Desc = "中筒拼板 TG01148.1.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10031_04", MesCode = "190007057", MaterielId = "10031", Code = "TG011210.1.2 - 1", Name = "中筒拼板 TG011210.1.2 - 1", SideLength = 2210, Height = 2210, Diameter = 2280, Sort = 4, Desc = "中筒拼板 TG011210.1.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10031_05", MesCode = "190005023", MaterielId = "10031", Code = "TG01085.1II.2 - 1", Name = "中筒拼板 TG01085.1II.2 - 1", SideLength = 1485, Height = 1485, Diameter = 2280, Sort = 5, Desc = "中筒拼板 TG01085.1II.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10031_06", MesCode = "190004845", MaterielId = "10031", Code = "TG01103.1II.2 - 1", Name = "中筒拼板 TG01103.1II.2 - 1", SideLength = 1826, Height = 1826, Diameter = 2280, Sort = 6, Desc = "中筒拼板 TG01103.1II.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10031_07", MesCode = "190008001", MaterielId = "10031", Code = "TG01088.1II.2 - 1", Name = "中筒拼板 TG01088.1II.2 - 1", SideLength = 1025, Height = 1025, Diameter = 2240, Sort = 7, Desc = "中筒拼板 TG01088.1II.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10031_08", MesCode = "190007811", MaterielId = "10031", Code = "TG01094.1III.2 - 1", Name = "中筒拼板 TG01094.1III.2 - 1", SideLength = 1360, Height = 1360, Diameter = 2240, Sort = 8, Desc = "中筒拼板 TG01094.1III.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10031_09", MesCode = "190007418", MaterielId = "10031", Code = "TG01108.1III.2 - 1", Name = "中筒拼板 TG01108.1III.2 - 1", SideLength = 1490, Height = 1490, Diameter = 2240, Sort = 9, Desc = "中筒拼板 TG01108.1III.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10031_10", MesCode = "xxx", MaterielId = "10031", Code = "10.xxx", Name = "中筒拼板 10.xxx", SideLength = 1725, Height = 1725, Diameter = 2240, Sort = 10, Desc = "中筒拼板 10.xxx", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10031_11", MesCode = "xxx", MaterielId = "10031", Code = "11.xxx", Name = "中筒拼板 11.xxx", SideLength = 1830, Height = 1830, Diameter = 2280, Sort = 11, Desc = "中筒拼板 11.xxx", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1003_01", MesCode = "190007552", MaterielId = "1003", Code = "TG011011.1.2 - 1", Name = "中筒 TG011011.1.2 - 1", SideLength = 1160, Height = 1160, Diameter = 2350, Sort = 12, Desc = "中筒 TG011011.1.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1003_02", MesCode = "190007785", MaterielId = "1003", Code = "TG011213.1.2 - 1", Name = "中筒 TG011213.1.2 - 1", SideLength = 1360, Height = 1360, Diameter = 2350, Sort = 13, Desc = "中筒 TG011213.1.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1003_03", MesCode = "190007081", MaterielId = "1003", Code = "TG01148.1.2 - 1", Name = "中筒 TG01148.1.2 - 1", SideLength = 2480, Height = 2480, Diameter = 2280, Sort = 14, Desc = "中筒 TG01148.1.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1003_04", MesCode = "190007057", MaterielId = "1003", Code = "TG011210.1.2 - 1", Name = "中筒 TG011210.1.2 - 1", SideLength = 2210, Height = 2210, Diameter = 2280, Sort = 15, Desc = "中筒 TG011210.1.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1003_05", MesCode = "190005023", MaterielId = "1003", Code = "TG01085.1II.2 - 1", Name = "中筒 TG01085.1II.2 - 1", SideLength = 1485, Height = 1485, Diameter = 2280, Sort = 16, Desc = "中筒 TG01085.1II.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1003_06", MesCode = "190004845", MaterielId = "1003", Code = "TG01103.1II.2 - 1", Name = "中筒 TG01103.1II.2 - 1", SideLength = 1826, Height = 1826, Diameter = 2280, Sort = 17, Desc = "中筒 TG01103.1II.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1003_07", MesCode = "190008001", MaterielId = "1003", Code = "TG01088.1II.2 - 1", Name = "中筒 TG01088.1II.2 - 1", SideLength = 1025, Height = 1025, Diameter = 2240, Sort = 18, Desc = "中筒 TG01088.1II.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1003_08", MesCode = "190007811", MaterielId = "1003", Code = "TG01094.1III.2 - 1", Name = "中筒 TG01094.1III.2 - 1", SideLength = 1360, Height = 1360, Diameter = 2240, Sort = 19, Desc = "中筒 TG01094.1III.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1003_09", MesCode = "190007418", MaterielId = "1003", Code = "TG01108.1III.2 - 1", Name = "中筒 TG01108.1III.2 - 1", SideLength = 1490, Height = 1490, Diameter = 2240, Sort = 20, Desc = "中筒 TG01108.1III.2 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1003_10", MesCode = "xxx", MaterielId = "1003", Code = "10.xxx", Name = "中筒 10.xxx", SideLength = 1725, Height = 1725, Diameter = 2240, Sort = 21, Desc = "中筒 10.xxx", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1003_11", MesCode = "xxx", MaterielId = "1003", Code = "11.xxx", Name = "中筒 11.xxx", SideLength = 1830, Height = 1830, Diameter = 2280, Sort = 22, Desc = "中筒 11.xxx", CreateUserId = "1", ModifyUserId = "1" });

            //后锥前及后锥前拼板
            builder.HasData(new MaterielSpec() { Id = "10041_01", MesCode = "190007553", MaterielId = "10041", Code = "TG011011.1.3 - 1", Name = "后锥前拼板 TG011011.1.3 - 1", SideLength = 960, Height = 950, Diameter = 0, ToFrockHeight = 815, Sort = 1, Desc = "后锥前拼板 TG011011.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10041_02", MesCode = "190007786", MaterielId = "10041", Code = "TG011213.1.3 - 1", Name = "后锥前拼板 TG011213.1.3 - 1", SideLength = 960, Height = 950, Diameter = 0, ToFrockHeight = 815, Sort = 2, Desc = "后锥前拼板 TG011213.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10041_03", MesCode = "190007083", MaterielId = "10041", Code = "TG01148.1.3 - 1", Name = "后锥前拼板 TG01148.1.3 - 1", SideLength = 1137, Height = 1075, Diameter = 0, ToFrockHeight = 864.1, Sort = 3, Desc = "后锥前拼板 TG01148.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10041_04", MesCode = "190007060", MaterielId = "10041", Code = "TG011210.1.3 - 1", Name = "后锥前拼板 TG011210.1.3 - 1", SideLength = 1112, Height = 1075, Diameter = 0, ToFrockHeight = 864.1, Sort = 4, Desc = "后锥前拼板 TG011210.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10041_05", MesCode = "190005021", MaterielId = "10041", Code = "TG01085.1II.3 - 1", Name = "后锥前拼板 TG01085.1II.3 - 1", SideLength = 1112, Height = 1075, Diameter = 0, ToFrockHeight = 864.1, Sort = 5, Desc = "后锥前拼板 TG01085.1II.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10041_06", MesCode = "190004838", MaterielId = "10041", Code = "TG01103.1II.3 - 1", Name = "后锥前拼板 TG01103.1II.3 - 1", SideLength = 1112, Height = 1075, Diameter = 0, ToFrockHeight = 864.1, Sort = 6, Desc = "后锥前拼板 TG01103.1II.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10041_07", MesCode = "190007422", MaterielId = "10041", Code = "TG011212.1.3 - 1", Name = "后锥前拼板 TG011212.1.3 - 1", SideLength = 1512, Height = 1475, Diameter = 0, ToFrockHeight = 1236, Sort = 7, Desc = "后锥前拼板 TG011212.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10041_08", MesCode = "190007994", MaterielId = "10041", Code = "TG01088.1II.3 - 1", Name = "后锥前拼板 TG01088.1II.3 - 1", SideLength = 1317, Height = 1279, Diameter = 0, ToFrockHeight = 1062.8, Sort = 8, Desc = "后锥前拼板 TG01088.1II.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10041_09", MesCode = "190007538", MaterielId = "10041", Code = "TG01094 ???", Name = "后锥前拼板 TG01094 ???", SideLength = 1482, Height = 1450, Diameter = 0, ToFrockHeight = 1220.3, Sort = 9, Desc = "后锥前拼板 TG01094 ???", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10041_10", MesCode = "190007672", MaterielId = "10041", Code = "TG01108.1III.3 - 1", Name = "后锥前拼板 TG01108.1III.3 - 1", SideLength = 1482, Height = 1450, Diameter = 0, ToFrockHeight = 1220.3, Sort = 10, Desc = "后锥前拼板 TG01108.1III.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10041_11", MesCode = "xxx", MaterielId = "10041", Code = "TG011010.1.3 - 1", Name = "后锥前拼板 TG01108.1III.3 - 1", SideLength = 1482, Height = 1450, Diameter = 0, ToFrockHeight = 1220.3, Sort = 11, Desc = "后锥前拼板 TG01108.1III.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1004_01", MesCode = "190007553", MaterielId = "1004", Code = "TG011011.1.3 - 1", Name = "后锥前 TG011011.1.3 - 1", SideLength = 960, Height = 950, Diameter = 0, ToFrockHeight = 815, Sort = 12, Desc = "后锥前 TG011011.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1004_02", MesCode = "190007786", MaterielId = "1004", Code = "TG011213.1.3 - 1", Name = "后锥前 TG011213.1.3 - 1", SideLength = 960, Height = 950, Diameter = 0, ToFrockHeight = 815, Sort = 13, Desc = "后锥前 TG011213.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1004_03", MesCode = "190007083", MaterielId = "1004", Code = "TG01148.1.3 - 1", Name = "后锥前 TG01148.1.3 - 1", SideLength = 1137, Height = 1075, Diameter = 0, ToFrockHeight = 864.1, Sort = 14, Desc = "后锥前 TG01148.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1004_04", MesCode = "190007060", MaterielId = "1004", Code = "TG011210.1.3 - 1", Name = "后锥前 TG011210.1.3 - 1", SideLength = 1112, Height = 1075, Diameter = 0, ToFrockHeight = 864.1, Sort = 15, Desc = "后锥前 TG011210.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1004_05", MesCode = "190005021", MaterielId = "1004", Code = "TG01085.1II.3 - 1", Name = "后锥前 TG01085.1II.3 - 1", SideLength = 1112, Height = 1075, Diameter = 0, ToFrockHeight = 864.1, Sort = 16, Desc = "后锥前 TG01085.1II.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1004_06", MesCode = "190004838", MaterielId = "1004", Code = "TG01103.1II.3 - 1", Name = "后锥前 TG01103.1II.3 - 1", SideLength = 1112, Height = 1075, Diameter = 0, ToFrockHeight = 864.1, Sort = 17, Desc = "后锥前 TG01103.1II.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1004_07", MesCode = "190007422", MaterielId = "1004", Code = "TG011212.1.3 - 1", Name = "后锥前 TG011212.1.3 - 1", SideLength = 1512, Height = 1475, Diameter = 0, ToFrockHeight = 1236, Sort = 18, Desc = "后锥前 TG011212.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1004_08", MesCode = "190007994", MaterielId = "1004", Code = "TG01088.1II.3 - 1", Name = "后锥前 TG01088.1II.3 - 1", SideLength = 1317, Height = 1279, Diameter = 0, ToFrockHeight = 1062.8, Sort = 19, Desc = "后锥前 TG01088.1II.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1004_09", MesCode = "190007538", MaterielId = "1004", Code = "TG01094 ???", Name = "后锥前 TG01094 ???", SideLength = 1482, Height = 1450, Diameter = 0, ToFrockHeight = 1220.3, Sort = 20, Desc = "后锥前 TG01094 ???", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1004_10", MesCode = "190007672", MaterielId = "1004", Code = "TG01108.1III.3 - 1", Name = "后锥前 TG01108.1III.3 - 1", SideLength = 1482, Height = 1450, Diameter = 0, ToFrockHeight = 1220.3, Sort = 21, Desc = "后锥前 TG01108.1III.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1004_11", MesCode = "xxx", MaterielId = "1004", Code = "TG011010.1.3 - 1", Name = "后锥前 TG01108.1III.3 - 1", SideLength = 1482, Height = 1450, Diameter = 0, ToFrockHeight = 1220.3, Sort = 22, Desc = "后锥前 TG01108.1III.3 - 1", CreateUserId = "1", ModifyUserId = "1" });

            //后锥段拼板
            builder.HasData(new MaterielSpec() { Id = "10051_01", MesCode = "190007542", MaterielId = "10051", Code = "TG011011.1.4 - 1", Name = "后锥后拼板 TG011011.1.4 - 1", SideLength = 1862, Height = 1800, Diameter = 0, Sort = 1, Desc = "后锥后拼板 TG011011.1.4 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10051_02", MesCode = "190007789", MaterielId = "10051", Code = "TG011213.1.4 - 1", Name = "后锥后拼板 TG011213.1.4 - 1", SideLength = 1862, Height = 1800, Diameter = 0, Sort = 2, Desc = "后锥后拼板 TG011213.1.4 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10051_03", MesCode = "190007083", MaterielId = "10051", Code = "TG01148.1.3 - 1", Name = "后锥后拼板 TG01148.1.3 - 1", SideLength = 1137, Height = 1125, Diameter = 0, Sort = 3, Desc = "后锥后拼板 TG01148.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10051_04", MesCode = "190007060", MaterielId = "10051", Code = "TG011210.1.3 - 1", Name = "后锥后拼板 TG011210.1.3 - 1", SideLength = 1162, Height = 1125, Diameter = 0, Sort = 4, Desc = "后锥后拼板 TG011210.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10051_05", MesCode = "190005021", MaterielId = "10051", Code = "TG01085.1II.3 - 1", Name = "后锥后拼板 TG01085.1II.3 - 1", SideLength = 1162, Height = 1125, Diameter = 0, Sort = 5, Desc = "后锥后拼板 TG01085.1II.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10051_06", MesCode = "190004838", MaterielId = "10051", Code = "TG01103.1II.3 - 1", Name = "后锥后拼板 TG01103.1II.3 - 1", SideLength = 1162, Height = 1125, Diameter = 0, Sort = 6, Desc = "后锥后拼板 TG01103.1II.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10051_07", MesCode = "190007994", MaterielId = "10051", Code = "TG01088.1II.3 - 1", Name = "后锥后拼板 TG01088.1II.3 - 1", SideLength = 1971, Height = 1041, Diameter = 0, Sort = 7, Desc = "后锥后拼板 TG01088.1II.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10051_08", MesCode = "xxx", MaterielId = "10051", Code = "TG01094 ???", Name = "后锥后拼板 TG01094 ???", SideLength = 1277, Height = 1250, Diameter = 0, Sort = 8, Desc = "后锥后拼板 TG01094 ???", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10051_09", MesCode = "190007422", MaterielId = "10051", Code = "TG01108.1III.3 - 1", Name = "后锥后拼板 TG01108.1III.3 - 1", SideLength = 1277, Height = 1250, Diameter = 0, Sort = 9, Desc = "后锥后拼板 TG01108.1III.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10051_10", MesCode = "190007538", MaterielId = "10051", Code = "TG011010.1.3 - 1", Name = "后锥后拼板 TG011010.1.3 - 1", SideLength = 1277, Height = 1250, Diameter = 0, Sort = 10, Desc = "后锥后拼板 TG011010.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "10051_11", MesCode = "190007672", MaterielId = "10051", Code = "TG011212.1.3 - 1", Name = "后锥后拼板 TG011212.1.3 - 1", SideLength = 1153, Height = 1125, Diameter = 0, Sort = 11, Desc = "后锥后拼板 TG011212.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1005_01", MesCode = "190007542", MaterielId = "1005", Code = "TG011011.1.4 - 1", Name = "后锥后 TG011011.1.4 - 1", SideLength = 1862, Height = 1800, Diameter = 0, Sort = 12, Desc = "后锥后 TG011011.1.4 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1005_02", MesCode = "190007789", MaterielId = "1005", Code = "TG011213.1.4 - 1", Name = "后锥后 TG011213.1.4 - 1", SideLength = 1862, Height = 1800, Diameter = 0, Sort = 13, Desc = "后锥后 TG011213.1.4 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1005_03", MesCode = "190007083", MaterielId = "1005", Code = "TG01148.1.3 - 1", Name = "后锥后 TG01148.1.3 - 1", SideLength = 1137, Height = 1125, Diameter = 0, Sort = 14, Desc = "后锥后 TG01148.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1005_04", MesCode = "190007060", MaterielId = "1005", Code = "TG011210.1.3 - 1", Name = "后锥后 TG011210.1.3 - 1", SideLength = 1162, Height = 1125, Diameter = 0, Sort = 15, Desc = "后锥后 TG011210.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1005_05", MesCode = "190005021", MaterielId = "1005", Code = "TG01085.1II.3 - 1", Name = "后锥后 TG01085.1II.3 - 1", SideLength = 1162, Height = 1125, Diameter = 0, Sort = 16, Desc = "后锥后 TG01085.1II.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1005_06", MesCode = "190004838", MaterielId = "1005", Code = "TG01103.1II.3 - 1", Name = "后锥后 TG01103.1II.3 - 1", SideLength = 1162, Height = 1125, Diameter = 0, Sort = 17, Desc = "后锥后 TG01103.1II.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1005_07", MesCode = "190007994", MaterielId = "1005", Code = "TG01088.1II.3 - 1", Name = "后锥后 TG01088.1II.3 - 1", SideLength = 1971, Height = 1041, Diameter = 0, Sort = 18, Desc = "后锥后 TG01088.1II.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1005_08", MesCode = "xxx", MaterielId = "1005", Code = "TG01094 ???", Name = "后锥后 TG01094 ???", SideLength = 1277, Height = 1250, Diameter = 0, Sort = 19, Desc = "后锥后 TG01094 ???", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1005_09", MesCode = "190007422", MaterielId = "1005", Code = "TG01108.1III.3 - 1", Name = "后锥后 TG01108.1III.3 - 1", SideLength = 1277, Height = 1250, Diameter = 0, Sort = 20, Desc = "后锥后 TG01108.1III.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1005_10", MesCode = "190007538", MaterielId = "1005", Code = "TG011010.1.3 - 1", Name = "后锥后 TG011010.1.3 - 1", SideLength = 1277, Height = 1250, Diameter = 0, Sort = 21, Desc = "后锥后 TG011010.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1005_11", MesCode = "190007672", MaterielId = "1005", Code = "TG011212.1.3 - 1", Name = "后锥后 TG011212.1.3 - 1", SideLength = 1153, Height = 1125, Diameter = 0, Sort = 22, Desc = "后锥后 TG011212.1.3 - 1", CreateUserId = "1", ModifyUserId = "1" });

            //进料管
            builder.HasData(new MaterielSpec() { Id = "1006_01", MesCode = "190007073", MaterielId = "1006", Code = "TG011210.1.3.11 - 2", Desc = "TG011210.1.3.11 - 2", Sort = 1, Name = "TG011210.1.3.11 - 2 进料管", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1006_02", MesCode = "190003359", MaterielId = "1006", Code = "TG01124.1.3 - 15", Desc = "TG01124.1.3 - 15", Sort = 2, Name = "TG01124.1.3 - 15 进料管", CreateUserId = "1", ModifyUserId = "1" });

            //进料喇叭
            builder.HasData(new MaterielSpec() { Id = "1007_01", MesCode = "190007122", MaterielId = "1007", Code = "TG01108.1.3.13 - 1", Desc = "TG01108.1.3.13 - 1", Sort = 1, Name = "TG01108.1.3.13 - 1 进料喇叭", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1007_02", MesCode = "190004835", MaterielId = "1007", Code = "TG01103.1II.3 - 12", Desc = "TG01103.1II.3 - 12", Sort = 2, Name = "TG01103.1II.3 - 12 进料喇叭", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1007_03", MesCode = "190007072", MaterielId = "1007", Code = "TG01103.1II.3 - 12", Desc = "？？？", Sort = 2, Name = "？？？ 进料喇叭", CreateUserId = "1", ModifyUserId = "1" });

            //后挡圈Ⅰ
            builder.HasData(new MaterielSpec() { Id = "1009_01", MesCode = "190007098", MaterielId = "1009", Code = "TG01108.1 - 5", Desc = "TG01108.1 - 5", Sort = 1, Name = "TG01108.1 - 5 后挡圈Ⅰ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1009_02", MesCode = "190007793", MaterielId = "1009", Code = "TG011213.1 - 6", Desc = "TG011213.1 - 6", Sort = 2, Name = "TG011213.1 - 6 后挡圈Ⅰ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1009_03", MesCode = "190100175", MaterielId = "1009", Code = "TG01121.1 - 6", Desc = "TG01121.1 - 6", Sort = 3, Name = "TG01121.1 - 6 后挡圈Ⅰ", CreateUserId = "1", ModifyUserId = "1" });

            //后挡圈Ⅱ
            builder.HasData(new MaterielSpec() { Id = "1010_01", MesCode = "190007322", MaterielId = "1010", Code = "TG01108.1II - 6", Desc = "TG01108.1II - 6", Sort = 1, Name = "TG01108.1II - 6 后挡圈II", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1010_02", MesCode = "190100174", MaterielId = "1010", Code = "TG01121.1 - 5", Desc = "TG01121.1 - 5", Sort = 2, Name = "TG01121.1 - 5 后挡圈Ⅱ", CreateUserId = "1", ModifyUserId = "1" });

            //滚道
            builder.HasData(new MaterielSpec() { Id = "1011_01", MesCode = "190007509", MaterielId = "1011", Code = "TG01109.1.4 - 11", Desc = "TG01109.1.4 - 11", Sort = 1, Name = "TG01109.1.4 - 11 滚道", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1011_02", MesCode = "190007780", MaterielId = "1011", Code = "TG011213.1.4 - 2", Desc = "TG011213.1.4 - 2", Sort = 2, Name = "TG011213.1.4 - 2 滚道", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1011_03", MesCode = "190007084", MaterielId = "1011", Code = "TG01148.1.3 - 2", Desc = "TG01148.1.3 - 2", Sort = 3, Name = "TG01148.1.3 - 2 滚道", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1011_04", MesCode = "190007071", MaterielId = "1011", Code = "TG011210.1.3 - 12", Desc = "TG011210.1.3 - 12", Sort = 4, Name = "TG011210.1.3 - 12 滚道", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1011_05", MesCode = "190002749", MaterielId = "1011", Code = "TG01102.1.3 - 10", Desc = "TG01102.1.3 - 10", Sort = 5, Name = "TG01102.1.3 - 10 滚道", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1011_06", MesCode = "190007121", MaterielId = "1011", Code = "TG01108.1.3 - 14", Desc = "TG01108.1.3 - 14", Sort = 6, Name = "TG01108.1.3 - 14 滚道", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1011_07", MesCode = "190007149", MaterielId = "1011", Code = "TG01088.1.3 - 11", Desc = "TG01088.1.3 - 11", Sort = 7, Name = "TG01088.1.3 - 11 滚道", CreateUserId = "1", ModifyUserId = "1" });

            //叶片
            builder.HasData(new MaterielSpec() { Id = "1008_000", MesCode = "", MaterielId = "1008", Code = "000", Name = "分拣叶片组", SideLength = 0, Height = 0, Diameter = 0, Sort = 1, Desc = "分拣叶片组", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_001", MesCode = "190007999", MaterielId = "1008", Code = "TG01088.1Ⅱ.3-6", Name = "TG01088.1Ⅱ.3-6 叶片ⅩⅡ", SideLength = 0, Height = 0, Diameter = 0, Sort = 1, Desc = "TG01088.1Ⅱ.3-6 叶片ⅩⅡ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_002", MesCode = "190007998", MaterielId = "1008", Code = "TG01088.1Ⅱ.3-5", Name = "TG01088.1Ⅱ.3-5 叶片ⅩⅠ", SideLength = 0, Height = 0, Diameter = 0, Sort = 2, Desc = "TG01088.1Ⅱ.3-5 叶片ⅩⅠ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_003", MesCode = "190007996", MaterielId = "1008", Code = "TG01088.1Ⅱ.3-4", Name = "TG01088.1Ⅱ.3-4 叶片Ⅹ", SideLength = 0, Height = 0, Diameter = 0, Sort = 3, Desc = "TG01088.1Ⅱ.3-4 叶片Ⅹ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_004", MesCode = "190007997", MaterielId = "1008", Code = "TG01088.1Ⅱ.3-3", Name = "TG01088.1Ⅱ.3-3 叶片Ⅸ", SideLength = 0, Height = 0, Diameter = 0, Sort = 4, Desc = "TG01088.1Ⅱ.3-3 叶片Ⅸ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_005", MesCode = "190007995", MaterielId = "1008", Code = "TG01088.1Ⅱ.3-2", Name = "TG01088.1Ⅱ.3-2 叶片Ⅷ", SideLength = 0, Height = 0, Diameter = 0, Sort = 5, Desc = "TG01088.1Ⅱ.3-2 叶片Ⅷ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_006", MesCode = "190008002", MaterielId = "1008", Code = "TG01088.1Ⅲ.2-2", Name = "TG01088.1Ⅲ.2-2 叶片Ⅶ", SideLength = 0, Height = 0, Diameter = 0, Sort = 6, Desc = "TG01088.1Ⅲ.2-2 叶片Ⅶ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_007", MesCode = "190007417", MaterielId = "1008", Code = "TG01088.1Ⅲ.1-7", Name = "TG01088.1Ⅲ.1-7 叶片Ⅵ", SideLength = 0, Height = 0, Diameter = 0, Sort = 7, Desc = "TG01088.1Ⅲ.1-7 叶片Ⅵ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_008", MesCode = "190007779", MaterielId = "1008", Code = "TG01088.1Ⅲ.1-6A", Name = "TG01088.1Ⅲ.1-6A 叶片Ⅴ", SideLength = 0, Height = 0, Diameter = 0, Sort = 8, Desc = "TG01088.1Ⅲ.1-6A 叶片Ⅴ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_009", MesCode = "190007778", MaterielId = "1008", Code = "TG01088.1Ⅲ.1-5A", Name = "TG01088.1Ⅲ.1-5A 叶片Ⅳ", SideLength = 0, Height = 0, Diameter = 0, Sort = 9, Desc = "TG01088.1Ⅲ.1-5A 叶片Ⅳ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_010", MesCode = "190007777", MaterielId = "1008", Code = "TG01088.1Ⅲ.1-4A", Name = "TG01088.1Ⅲ.1-4A 叶片Ⅲ", SideLength = 0, Height = 0, Diameter = 0, Sort = 10, Desc = "TG01088.1Ⅲ.1-4A 叶片Ⅲ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_011", MesCode = "190007776", MaterielId = "1008", Code = "TG01088.1Ⅲ.1-3A", Name = "TG01088.1Ⅲ.1-3A 叶片Ⅱ", SideLength = 0, Height = 0, Diameter = 0, Sort = 11, Desc = "TG01088.1Ⅲ.1-3A 叶片Ⅱ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_012", MesCode = "190007775", MaterielId = "1008", Code = "TG01088.1Ⅲ.1-2A", Name = "TG01088.1Ⅲ.1-2A 叶片Ⅰ", SideLength = 0, Height = 0, Diameter = 0, Sort = 12, Desc = "TG01088.1Ⅲ.1-2A 叶片Ⅰ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_013", MesCode = "190007810", MaterielId = "1008", Code = "TG01108.1Ⅲ.3-8A", Name = "TG01108.1Ⅲ.3-8A 叶片ⅩⅣ", SideLength = 0, Height = 0, Diameter = 0, Sort = 13, Desc = "TG01108.1Ⅲ.3-8A 叶片ⅩⅣ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_014", MesCode = "190007809", MaterielId = "1008", Code = "TG01108.1Ⅲ.3-7A", Name = "TG01108.1Ⅲ.3-7A 叶片ⅩⅢ", SideLength = 0, Height = 0, Diameter = 0, Sort = 14, Desc = "TG01108.1Ⅲ.3-7A 叶片ⅩⅢ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_015", MesCode = "190007808", MaterielId = "1008", Code = "TG01108.1Ⅲ.3-6A", Name = "TG01108.1Ⅲ.3-6A 叶片ⅩⅡ", SideLength = 0, Height = 0, Diameter = 0, Sort = 15, Desc = "TG01108.1Ⅲ.3-6A 叶片ⅩⅡ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_016", MesCode = "190007426", MaterielId = "1008", Code = "TG01108.1Ⅲ.3-5", Name = "TG01108.1Ⅲ.3-5 叶片ⅩⅠ", SideLength = 0, Height = 0, Diameter = 0, Sort = 16, Desc = "TG01108.1Ⅲ.3-5 叶片ⅩⅠ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_017", MesCode = "190007425", MaterielId = "1008", Code = "TG01108.1Ⅲ.3-4", Name = "TG01108.1Ⅲ.3-4 叶片Ⅹ", SideLength = 0, Height = 0, Diameter = 0, Sort = 17, Desc = "TG01108.1Ⅲ.3-4 叶片Ⅹ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_018", MesCode = "190007424", MaterielId = "1008", Code = "TG01108.1Ⅲ.3-3", Name = "TG01108.1Ⅲ.3-3 叶片Ⅸ", SideLength = 0, Height = 0, Diameter = 0, Sort = 18, Desc = "TG01108.1Ⅲ.3-3 叶片Ⅸ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_019", MesCode = "190007423", MaterielId = "1008", Code = "TG01108.1Ⅲ.3-2", Name = "TG01108.1Ⅲ.3-2 叶片Ⅷ", SideLength = 0, Height = 0, Diameter = 0, Sort = 19, Desc = "TG01108.1Ⅲ.3-2 叶片Ⅷ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_020", MesCode = "190007419", MaterielId = "1008", Code = "TG01108.1Ⅲ.2-2", Name = "TG01108.1Ⅲ.2-2 叶片Ⅶ", SideLength = 0, Height = 0, Diameter = 0, Sort = 20, Desc = "TG01108.1Ⅲ.2-2 叶片Ⅶ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_021", MesCode = "190007812", MaterielId = "1008", Code = "TG01094.1Ⅲ.2-2", Name = "TG01094.1Ⅲ.2-2 叶片Ⅰ", SideLength = 0, Height = 0, Diameter = 0, Sort = 21, Desc = "TG01094.1Ⅲ.2-2 叶片Ⅰ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_022", MesCode = "190007417", MaterielId = "1008", Code = "TG01108.1Ⅲ.1-7", Name = "TG01108.1Ⅲ.1-7 叶片Ⅵ", SideLength = 0, Height = 0, Diameter = 0, Sort = 22, Desc = "TG01108.1Ⅲ.1-7 叶片Ⅵ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_023", MesCode = "190007779", MaterielId = "1008", Code = "TG01108.1Ⅲ.1-6A", Name = "TG01108.1Ⅲ.1-6A 叶片Ⅴ", SideLength = 0, Height = 0, Diameter = 0, Sort = 23, Desc = "TG01108.1Ⅲ.1-6A 叶片Ⅴ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_024", MesCode = "190007778", MaterielId = "1008", Code = "TG01108.1Ⅲ.1-5A", Name = "TG01108.1Ⅲ.1-5A 叶片Ⅳ", SideLength = 0, Height = 0, Diameter = 0, Sort = 24, Desc = "TG01108.1Ⅲ.1-5A 叶片Ⅳ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_025", MesCode = "190007777", MaterielId = "1008", Code = "TG01108.1Ⅲ.1-4A", Name = "TG01108.1Ⅲ.1-4A 叶片Ⅲ", SideLength = 0, Height = 0, Diameter = 0, Sort = 25, Desc = "TG01108.1Ⅲ.1-4A 叶片Ⅲ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_026", MesCode = "190007776", MaterielId = "1008", Code = "TG01108.1Ⅲ.1-3A", Name = "TG01108.1Ⅲ.1-3A 叶片Ⅱ", SideLength = 0, Height = 0, Diameter = 0, Sort = 26, Desc = "TG01108.1Ⅲ.1-3A 叶片Ⅱ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_027", MesCode = "190007775", MaterielId = "1008", Code = "TG01108.1Ⅲ.1-2A", Name = "TG01108.1Ⅲ.1-2A 叶片Ⅰ", SideLength = 0, Height = 0, Diameter = 0, Sort = 27, Desc = "TG01108.1Ⅲ.1-2A 叶片Ⅰ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_028", MesCode = "190007065", MaterielId = "1008", Code = "TG011210.1Ⅱ.3-6", Name = "TG011210.1Ⅱ.3-6 叶片ⅩⅠ", SideLength = 0, Height = 0, Diameter = 0, Sort = 28, Desc = "TG011210.1Ⅱ.3-6 叶片ⅩⅠ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_029", MesCode = "190007064", MaterielId = "1008", Code = "TG011210.1Ⅱ.3-5", Name = "TG011210.1Ⅱ.3-5 叶片Ⅹ", SideLength = 0, Height = 0, Diameter = 0, Sort = 29, Desc = "TG011210.1Ⅱ.3-5 叶片Ⅹ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_030", MesCode = "190007063", MaterielId = "1008", Code = "TG011210.1Ⅱ.3-4", Name = "TG011210.1Ⅱ.3-4 叶片Ⅸ", SideLength = 0, Height = 0, Diameter = 0, Sort = 30, Desc = "TG011210.1Ⅱ.3-4 叶片Ⅸ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_031", MesCode = "190007062", MaterielId = "1008", Code = "TG011210.1Ⅱ.3-3", Name = "TG011210.1Ⅱ.3-3 叶片Ⅷ", SideLength = 0, Height = 0, Diameter = 0, Sort = 31, Desc = "TG011210.1Ⅱ.3-3 叶片Ⅷ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_032", MesCode = "190007061", MaterielId = "1008", Code = "TG011210.1Ⅱ.3-2", Name = "TG011210.1Ⅱ.3-2 叶片Ⅶ", SideLength = 0, Height = 0, Diameter = 0, Sort = 32, Desc = "TG011210.1Ⅱ.3-2 叶片Ⅶ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_033", MesCode = "190007058", MaterielId = "1008", Code = "TG011210.1Ⅱ.2-2", Name = "TG011210.1Ⅱ.2-2 叶片Ⅵ", SideLength = 0, Height = 0, Diameter = 0, Sort = 33, Desc = "TG011210.1Ⅱ.2-2 叶片Ⅵ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_034", MesCode = "", MaterielId = "1008", Code = "TG01103.1Ⅲ.2-2", Name = "TG01103.1Ⅲ.2-2 叶片Ⅵ", SideLength = 0, Height = 0, Diameter = 0, Sort = 34, Desc = "TG01103.1Ⅲ.2-2 叶片Ⅵ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_035", MesCode = "", MaterielId = "1008", Code = "TG011210.1Ⅱ.1-7", Name = "TG011210.1Ⅱ.1-7 叶片Ⅵ", SideLength = 0, Height = 0, Diameter = 0, Sort = 35, Desc = "TG011210.1Ⅱ.1-7 叶片Ⅵ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_036", MesCode = "190007053", MaterielId = "1008", Code = "TG011210.1Ⅱ.1-6", Name = "TG011210.1Ⅱ.1-6 叶片Ⅴ", SideLength = 0, Height = 0, Diameter = 0, Sort = 36, Desc = "TG011210.1Ⅱ.1-6 叶片Ⅴ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_037", MesCode = "190007052", MaterielId = "1008", Code = "TG011210.1Ⅱ.1-5", Name = "TG011210.1Ⅱ.1-5 叶片Ⅳ", SideLength = 0, Height = 0, Diameter = 0, Sort = 37, Desc = "TG011210.1Ⅱ.1-5 叶片Ⅳ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_038", MesCode = "190007051", MaterielId = "1008", Code = "TG011210.1Ⅱ.1-4", Name = "TG011210.1Ⅱ.1-4 叶片Ⅲ", SideLength = 0, Height = 0, Diameter = 0, Sort = 38, Desc = "TG011210.1Ⅱ.1-4 叶片Ⅲ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_039", MesCode = "190007050", MaterielId = "1008", Code = "TG011210.1Ⅱ.1-3", Name = "TG011210.1Ⅱ.1-3 叶片Ⅱ", SideLength = 0, Height = 0, Diameter = 0, Sort = 39, Desc = "TG011210.1Ⅱ.1-3 叶片Ⅱ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_040", MesCode = "190007049", MaterielId = "1008", Code = "TG011210.1Ⅱ.1-2", Name = "TG011210.1Ⅱ.1-2 叶片Ⅰ", SideLength = 0, Height = 0, Diameter = 0, Sort = 40, Desc = "TG011210.1Ⅱ.1-2 叶片Ⅰ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_041", MesCode = "", MaterielId = "1008", Code = "TG011010.1.2-2", Name = "TG011010.1.2-2 叶片Ⅵ", SideLength = 0, Height = 0, Diameter = 0, Sort = 41, Desc = "TG011010.1.2-2 叶片Ⅵ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_042", MesCode = "", MaterielId = "1008", Code = "TG011010.1.1-6", Name = "TG011010.1.1-6 叶片Ⅴ", SideLength = 0, Height = 0, Diameter = 0, Sort = 42, Desc = "TG011010.1.1-6 叶片Ⅴ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_043", MesCode = "", MaterielId = "1008", Code = "TG011010.1.1-5", Name = "TG011010.1.1-5 叶片Ⅳ", SideLength = 0, Height = 0, Diameter = 0, Sort = 43, Desc = "TG011010.1.1-5 叶片Ⅳ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_044", MesCode = "", MaterielId = "1008", Code = "TG011010.1.1-4", Name = "TG011010.1.1-4 叶片Ⅲ", SideLength = 0, Height = 0, Diameter = 0, Sort = 44, Desc = "TG011010.1.1-4 叶片Ⅲ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_045", MesCode = "", MaterielId = "1008", Code = "TG011010.1.1-3", Name = "TG011010.1.1-3 叶片Ⅱ", SideLength = 0, Height = 0, Diameter = 0, Sort = 45, Desc = "TG011010.1.1-3 叶片Ⅱ", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1008_046", MesCode = "", MaterielId = "1008", Code = "TG011010.1.1-2", Name = "TG011010.1.1-2 叶片Ⅰ", SideLength = 0, Height = 0, Diameter = 0, Sort = 46, Desc = "TG011010.1.1-2 叶片Ⅰ", CreateUserId = "1", ModifyUserId = "1" });

            //工装
            builder.HasData(new MaterielSpec() { Id = "1012_01", MesCode = "", MaterielId = "1012", Code = "A", Name = "A型", SideLength = 0, Height = 0, Diameter = 2276, Sort = 1, Desc = "A型", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1012_02", MesCode = "", MaterielId = "1012", Code = "B", Name = "B型", SideLength = 0, Height = 0, Diameter = 2000, Sort = 2, Desc = "B型", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterielSpec() { Id = "1012_03", MesCode = "", MaterielId = "1012", Code = "C", Name = "C型", SideLength = 0, Height = 0, Diameter = 2000, Sort = 3, Desc = "C型", CreateUserId = "1", ModifyUserId = "1" });
            #endregion
        }
    }
}
